package com.olddriver.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter@Getter
public class InsuranceList {

    private Long id;

    private String sn; //保单编号

    private Client client; //投保人
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputtime; //申请日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date verifytime; //审核日期

    private Integer term;  // 保险时长

    private Employee verifyUser;  //审核人

    private BigDecimal amount; //投保总金额

    private Byte state;  // 审核状态

    private Mechanism productItem; //保险产品明细

    private Carinformation carInformation; //车辆信息

}